﻿using Hx.ADSyncPlatform.Entity.Entities;
using System.Collections.Generic;
using System.DirectoryServices;

namespace Hx.ADSyncPlatform.ActiveDirectory.Service.Base
{
    public class BaseService
    {
        /// <summary>
        /// 过滤组织数据
        /// </summary>
        /// <param name="dataPersmissions"></param>
        /// <param name="organizations"></param>
        /// <returns></returns>
        public delegate IEnumerable<SearchResult> FilterOrgByDataPermission(IEnumerable<SearchResult> organizations, List<Plat_DataPermission> dataPersmissions);

        public delegate IEnumerable<SearchResult> FilterObjectByDataPermission(IEnumerable<SearchResult> organizations, List<Plat_DataPermission> dataPersmissions, List<string> systemOus);

        /// <summary>
        /// 过滤组织
        /// </summary>
        public FilterOrgByDataPermission filterOrgByDataPermission;


        /// <summary>
        /// 过滤用户|计算机|组
        /// </summary>
        public FilterObjectByDataPermission filterObjectByDataPermission;



    }
}
